import Vue from "vue";
import VueRouter from "vue-router";
import home from "../pages/home/index.vue";
import singerdetail from "../pages/home/singer/detail/index.vue"
import singer from "@pages/home/singer/index.vue"; 

Vue.use(VueRouter);
//添加路由
const routes = [
   {
    path: '/',
    name: 'home',
    component: home,
    children: [{
      path: "/singer",
      component: singer,
      children:[
       {
        path: ":mid",
        component: singerdetail
       }
      ]
    },
    ]
   },
   
    
];

const router = new VueRouter({
  routes,
});

export default router;
